package com.coder.shop.web.controller;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.coder.shop.dao.model.ShopGoodsType;
import com.coder.shop.dao.model.ShopGoodsTypeExample;
import com.coder.shop.rpc.api.ShopGoodsTypeService;

@Controller
public class IndexController {
	
	@Resource
	private ShopGoodsTypeService shopGoodsTypeService;

	@RequestMapping("/")
	public String index(ModelMap map) {
		map.put("typelist", shopGoodsTypeService.findTreeList());
		return "index";
	}

	@RequestMapping("/getGoodsList")
	public String getGoodsList(){
		return "";
	}


}
